<!DOCTYPE html>
<html ng-app="shop-module">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>丘丘谷后台管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="<?=base_url() . 'assets/library/bootstrap/css/bootstrap.min.css'?>">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="<?=base_url() . 'assets/library/dist/css/AdminLTE.min.css'?>">
    <!-- iCheck -->
    <link rel="stylesheet" href="<?=base_url() . 'assets/library/plugins/iCheck/square/blue.css'?>">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        .login-tab {
            float: left;
            width: 50%;
            height: 60px;;
            line-height: 60px;
            text-align: center;
            font-size: 20px;
            margin: 0;
            padding: 0;
            border-bottom: 1px solid #cacaca;
            cursor: pointer;
            background: #f4f4f4;
        }
        .login-tab.active {
            border-bottom: 1px solid #ffffff;
            background: #ffffff;
        }
        .ltl {
            border-right: 1px solid #cacaca;
        }
        .ltr {
            border-left: 1px solid #cacaca;
        }
        .ltl.active {
            border-right: 1px solid #ffffff;
        }
        .ltr.active {
            border-left: 1px solid #ffffff;
        }
    </style>
</head>
<body class="hold-transition login-page">
<div class="login-box" ng-controller="admin-login-index">
    <div class="login-logo">
        <a href="###"><b style="color: #FFFFFF;">QiuQiu</b> Gu</a>
    </div>
    <!-- /.login-logo -->
    <div class="login-box-body" ng-init="loginType='base'">

        <div style="display: block;height: 60px; margin: -20px;">
            <h3 class="login-tab ltl" ng-click="setLoginType('base')" ng-class="{'active': loginType == 'base'}">商户登录</h3>
            <h3 class="login-tab ltr" ng-click="setLoginType('admin')" ng-class="{'active': loginType == 'admin'}">管理员登录</h3>
        </div>

        <form style="margin-top: 60px;">

            <!--
                <p class="login-box-msg">丘丘谷后台管理系统</p>
            -->

            <div class="form-group has-feedback">
                <input type="email" class="form-control" ng-model="login.email" placeholder="邮箱">
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input type="password" class="form-control" ng-model="login.password" placeholder="密码">
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <!-- /.col -->
                <div>&nbsp;</div>

                <div class="col-xs-12">
                    <p class="text-red" ng-bind="login.error"></p>
                </div>
                <div class="col-xs-12">
                    <button type="submit" id="loginBtn" ng-click="loginAction()" class="btn btn-primary btn-block btn-flat">
                        <span class="inner-btn" ng-show="showBtnWords">登 录</span>
                        <i class="fa fa-spinner fa-spin fa-1x fa-fw" ng-show="!showBtnWords"></i>
                    </button>
                </div>
                <!-- /.col -->
            </div>
        </form>

        <br>
        <div class="text-right">
            <a href="#">找回密码?</a><br>
        </div>
        <!--
        <a href="register.html" class="text-center">Register a new membership</a>
        -->

    </div>
    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<script src="<?=base_url() . 'assets/library/plugins/jQuery/jquery-2.2.3.min.js'?>"></script>
<script src="<?=base_url() . 'assets/library/angular/angular.min.js'?>"></script>
<script src="<?=base_url() . 'assets/library/bootstrap/js/bootstrap.min.js'?>"></script>
<script src="<?=base_url() . 'assets/library/plugins/iCheck/icheck.min.js'?>"></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
<script src="<?=base_url() . 'assets/library/bootstrap-ui/ui-bootstrap-tpls.min.js'?>"></script>
<script src="<?=base_url() . 'assets/admin/js/base.js'?>"></script>
<script src="<?=base_url() . 'assets/admin/js/login/index.js'?>"></script>
</body>
</html>

